package com.wish.biz.dp.staffinfomanage.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;  
import org.springframework.stereotype.Component;  
 
@Component  
public class PortChecker {  
 
    @Autowired  
    private Environment env;  
 
    public void checkPort() {  
        String port = env.getProperty("server.port");  
        System.out.println("Server is running on port: " + port);  
    }  
}